package com.cysd.ewmxns.ui.fragment;

import android.animation.AnimatorSet;
import android.content.Context;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.annotation.NonNull;


import com.cysd.ewmxns.ui.dialog.BaseDialog;
import qrrspeeelild.rqrc0ode.andro0ild.R;


public class ScanErrorDialog extends BaseDialog {
    private Button button_danhao;

    private TextView tv_danhao;
    public ScanErrorDialog(@NonNull Context context) {
        super(context);
    }

    @Override
    protected float setWidthScale() {
        return 0.8f;
    }

    @Override
    protected AnimatorSet setEnterAnim() {
        return null;
    }

    @Override
    protected AnimatorSet setExitAnim() {
        return null;
    }

    @Override
    protected void init() {
        button_danhao=findViewById(R.id.btn_danhao_error);

        tv_danhao=findViewById(R.id.tv_danhao);



        button_danhao.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                dismiss();
            }
        });
    }

    @Override
    protected int getContentViewId() {
        return R.layout.dialog_scan_erro;
    }

    public void setTv_danhao(String danhao){
        tv_danhao.setText(danhao);
    }
}
